import cv2
image=cv2.imread('C:/Users/Administrator/Desktop/interview.png')
cv2.imshow("Input",image)
x,y,w,h=cv2.selectROI(image)
print("x={},y={},w={},h={}".format(x,y,w,h))
roi=image[y:y+h,x:x+w]
cv2.imshow('ROI',roi)
image1=image.copy()
roi1=cv2.GaussianBlur(roi,(25,25),3)
cv2.imshow('ROI1',roi1)
image1[y:y+h,x:x+w]=roi1
cv2.imshow('result1',image1)
image2=image.copy()
roi2=cv2.medianBlur(roi,25)
cv2.imshow('ROI2',roi2)
image2[y:y+h,x:x+w]=roi2
cv2.imshow('result2',image2)
cv2.waitKey()
cv2.destroyAllWindows()


